<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/common.jspf"%>
<script type="text/javascript" src="${ctx}/js/system/user/add.js">
	
</script>
<style type="text/css">
.col-sm-3 {
    position: relative;
	width: 15%;
	float: left;
	text-align: right;
}

.col-sm-9 {
	width: 32%;
	float: left;
	text-align: left;
}

label[class^="btn btn-default"] {
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/order/editOrder.shtml">
		<input type="hidden" class="form-control" value="${user.ofid}"
			   name="orderFormMap.ofid" id="ofid">

		<input type="hidden" value="${user.clientid}" name="orderFormMap.clientid" id="clientid">
		<input type="hidden" value="${user.edemid}" name="orderFormMap.edemid" id="edemid" >

		<section class="panel panel-default">
		<div class="panel-body">
			<div class="form-group">
				<div class="col-sm-3">
					<label class="control-label">订单编号</label>
				</div>
				<div class="col-sm-9">
					<input type="text" class="form-control"
						   name="orderFormMap.ofcode" id="ofcode" value="${user.ofcode}">

				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">编制人</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" value="${user.empName}"
							   id="edemids">
						<span class="input-group-btn">
							<button class="btn btn-info" id="ede" type="button"
									style="height: 34px; position: absolute; top: -34px; left: 210px;"
									onclick="emp();">
								<span class="glyphicon glyphicon-search"></span>
							</button>
					</span>
					</div>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-3 control-label">总产量</label>
				<div class="col-sm-9">
					<input type="text" class="form-control"
						   name="orderFormMap.num"
						   id="num" value="${user.num}">
				</div>

				<div class="form-group">
					<label class="col-sm-3 control-label">生产状态</label>
					<div class="col-sm-9">
						<select class="form-control" name="orderFormMap.billstateid" id="billstateid">
							<option value="1">完成</option>
							<option value="2">未完成</option>
							<option value="3">下达</option>
							<option value="4">等待</option>
							<option value="5">计划</option>
                            <option value="6">生产中</option>
						</select>
					</div>
				</div>
			</div>


			<div class="form-group">
				<label class="col-sm-3 control-label">产品</label>
				<div class="col-sm-9">
					<input type="text" class="form-control"
						   name="orderFormMap.stockid" id="stockid">
					<span class="input-group-btn">
							<button class="btn btn-info" id="workorder" type="button"
									style="height: 34px; position: absolute; top: -34px; left: 230px;"
									onclick="getItemBom('stockid','item_bom_name');">
								<span class="glyphicon glyphicon-search"></span>
							</button>
					</span>
				</div>

                <div class="form-group">
                    <label class="col-sm-3 control-label">客户</label>
					<div class="col-sm-9">
						<input type="text" class="form-control" value="${user.clientComName}"
							   id="clientids">
						<span class="input-group-btn">
							<button class="btn btn-info" id="tbc" type="button"
									style="height: 34px; position: absolute; top: -34px; left: 210px;"
									onclick="client();">
								<span class="glyphicon glyphicon-search"></span>
							</button>
					</span>
					</div>
                </div>
			</div>



			<div class="form-group">
				<label class="col-sm-3 control-label">开始时间</label>
				<div class="col-sm-9">
					<input type="date" class="form-control"
						   name="orderFormMap.btime"
						   id="btime" value="${user.btime}">
				</div>

				<div class="form-group">
					<label class="col-sm-3 control-label">结束时间</label>
					<div class="col-sm-9">
						<input type="date" class="form-control"
							   name="orderFormMap.etime"
							   id="etime" value="${user.etime}">
					</div>
				</div>
			</div>

			<div class="line line-dashed line-lg pull-in"></div>
		<footer class="panel-footer text-right bg-light lter">
		<button type="submit" class="btn btn-success btn-s-xs">提交</button>
		</footer>
		</section>
	</form>
	<script type="text/javascript" src="${ctx}/js/public/public.js"></script>
	<script type="text/javascript">
		onloadurl();
		function inser_data(data1, data2) {
			$("#clientids").val(data1);
			$("#clientid").val(data2);
		}
		function inser_data_emp(data1, data2) {
			$("#edemids").val(data1);
			$("#edemid").val(data2);
		}
	</script>
	<script type="text/javascript"
		src="${ctx}/notebook/notebook_files/bootstrap-filestyle.min.js"></script>
</body>
</html>